package com.edu.whty.service.impl;


import com.edu.whty.dao.ClassificationDao;
import com.edu.whty.entity.disk.ClassificationDTO;
import com.edu.whty.service.ClassificationService;
import org.apache.commons.beanutils.PropertyUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author	xiongxiaofei
 * @date	2014年12月22日
 * @desc	简单分类服务类
 */
@Component("classificationService")
public class ClassificationServiceImpl implements ClassificationService {
	
	private static final Logger logger = LogManager.getLogger(ClassificationServiceImpl.class);
	
	@Resource
	private ClassificationDao classificationDao;

	@Override
	public List<ClassificationDTO> findClassificationList(
			ClassificationDTO classificationDTO) throws Exception {
			List<ClassificationDTO> list = classificationDao.selectList(classificationDTO);
			return list;
	}

}
